package com.example.houduan.Pojo;

import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Component
public class DrugCompany {
    private int company_id;
    private String company_name;
    private String company_phone;
    private LocalDateTime dc_updatetime;
    private LocalDateTime dc_createtime;
    private BigDecimal latitude;
    private BigDecimal longitude;

    private City city;

    public DrugCompany() {
    }

    public DrugCompany(int company_id, String company_name, String company_phone, LocalDateTime dc_updatetime, LocalDateTime dc_createtime, BigDecimal latitude, BigDecimal longitude, City city) {
        this.company_id = company_id;
        this.company_name = company_name;
        this.company_phone = company_phone;
        this.dc_updatetime = dc_updatetime;
        this.dc_createtime = dc_createtime;
        this.latitude = latitude;
        this.longitude = longitude;
        this.city = city;
    }

    public int getCompany_id() {
        return company_id;
    }

    public void setCompany_id(int company_id) {
        this.company_id = company_id;
    }

    public String getCompany_name() {
        return company_name;
    }

    public void setCompany_name(String company_name) {
        this.company_name = company_name;
    }

    public String getCompany_phone() {
        return company_phone;
    }

    public void setCompany_phone(String company_phone) {
        this.company_phone = company_phone;
    }

    public LocalDateTime getDc_updatetime() {
        return dc_updatetime;
    }

    public void setDc_updatetime(LocalDateTime dc_updatetime) {
        this.dc_updatetime = dc_updatetime;
    }

    public LocalDateTime getDc_createtime() {
        return dc_createtime;
    }

    public void setDc_createtime(LocalDateTime dc_createtime) {
        this.dc_createtime = dc_createtime;
    }

    public BigDecimal getLatitude() {
        return latitude;
    }

    public void setLatitude(BigDecimal latitude) {
        this.latitude = latitude;
    }

    public BigDecimal getLongitude() {
        return longitude;
    }

    public void setLongitude(BigDecimal longitude) {
        this.longitude = longitude;
    }

    public City getCity() {
        return city;
    }

    public void setCity(City city) {
        this.city = city;
    }

    @Override
    public String toString() {
        return "DrugCompany{" +
                "company_id=" + company_id +
                ", company_name='" + company_name + '\'' +
                ", company_phone='" + company_phone + '\'' +
                ", dc_updatetime=" + dc_updatetime +
                ", dc_createtime=" + dc_createtime +
                ", latitude=" + latitude +
                ", longitude=" + longitude +
                ", city=" + city +
                '}';
    }
}
